<template>
  <div>
    <van-grid :column-num="channelArr.length">
      <van-grid-item
        v-for="item in channelArr"
        :key="item.id"
        :icon="item.icon_url"
        :text="item.name"
        @click="getChannel(item)"
      />
    </van-grid>
  </div>
</template>

<script>
export default {
  name: "",
  props: ["channelArr"],
  data() {
    return {};
  },

  components: {},

  computed: {},

  created() {},

  mounted() {},

  methods: {
    getChannel(item){
      this.$router.push({
        
          'path': '/Channel',
          query:{
            id:item.id
          }
        
      })
    }
  },
};
</script>
<style lang='less' scoped>
</style>